﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace S.Authorization.Domain.Migrations
{
    public partial class fixfield : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "StartingNumbering",
                table: "FieldModel");

            migrationBuilder.DropColumn(
                name: "columnCount",
                table: "FieldModel");

            migrationBuilder.AlterColumn<string>(
                name: "ResponsiblePerson",
                table: "FieldModel",
                type: "nvarchar(50)",
                maxLength: 50,
                nullable: true,
                oldClrType: typeof(string),
                oldType: "nvarchar(50)",
                oldMaxLength: 50);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<string>(
                name: "ResponsiblePerson",
                table: "FieldModel",
                type: "nvarchar(50)",
                maxLength: 50,
                nullable: false,
                defaultValue: "",
                oldClrType: typeof(string),
                oldType: "nvarchar(50)",
                oldMaxLength: 50,
                oldNullable: true);

            migrationBuilder.AddColumn<int>(
                name: "StartingNumbering",
                table: "FieldModel",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<bool>(
                name: "columnCount",
                table: "FieldModel",
                type: "bit",
                nullable: false,
                defaultValue: false);
        }
    }
}
